package com.qtenv.datasync.service.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qtenv.datasync.service.entity.TerminalHistoryData;
import com.qtenv.datasync.service.entity.convert.DataMeterH;
import com.qtenv.datasync.service.mapper.DataMeterHMapper;
import com.qtenv.datasync.service.service.IDataMeterHService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DS("middle")
public class IDataMeterHServiceImpl extends ServiceImpl<DataMeterHMapper, DataMeterH> implements IDataMeterHService {
    @Override
    public void saveToMiddle(List<DataMeterH> dataList) {
        this.getBaseMapper().insertAllBatch(dataList);
    }
}
